"""
Pioneer_Xiaoke URL Configuration
先锋小科主路由配置
"""

from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    path("admin/", admin.site.urls),

    # API路由
    path('api/auth/', include('apps.authentication.urls')),
    path('api/schedule/', include('apps.schedule.urls')),
    path('api/knowledge/', include('apps.knowledge.urls')),
    path('api/qa/', include('apps.qa.urls')),
    path('api/learning/', include('apps.learning_path.urls')),
    path('api/course/', include('apps.Course.urls')),
]

# 开发环境下提供媒体文件访问
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
